﻿using NbMeterServices;
using NbMeterServices.Entity;
using SqlSugar;
using System.ComponentModel.DataAnnotations;

/// <summary>
/// 仪表信息
/// </summary>
[SugarTable("MR_Event", "仪表信息")]
public class MrEvent
{
    /// <summary>
    /// Id
    /// </summary>
    [SugarColumn(ColumnName = "Id", ColumnDescription = "主键Id", IsPrimaryKey = true, IsIdentity = true)]
    public long Id { get; set; }

    /// <summary>
    /// 数据时间
    /// </summary>
    [SugarColumn(ColumnName = "DataTime", ColumnDescription = "数据时间")]
    public DateTime? DataTime { get; set; }

    /// <summary>
    /// MeterId
    /// </summary>
    [SugarColumn(ColumnName = "MeterId", ColumnDescription = "MeterId", Length = 10)]
    public long? MeterId { get; set; }

    /// <summary>
    /// 水表序列号
    /// </summary>
    [SugarColumn(ColumnName = "MeterNo", ColumnDescription = "水表编号", Length = 20)]
    public string? MeterNo { get; set; }

    /// <summary>
    /// 水表序列号
    /// </summary>
    [SugarColumn(ColumnName = "Message", ColumnDescription = "Message", Length = 20)]
    public string? Message { get; set; }

    /// <summary>
    /// 事件类型
    /// </summary>
    [SugarColumn(ColumnName = "EventType", ColumnDescription = "事件类型", Length = 20)]
    public int? EventType { get; set; }

    /// <summary>
    /// 事件来源
    /// </summary>
    [SugarColumn(ColumnName = "Source", ColumnDescription = "事件来源", Length = 20)]
    public string? Source { get; set; }

    public string LimitValue { get; set; }
    public string EventLevel { get; set; }
}